<template>
  <div v-if="messages.length > 0">
    <div v-for="(row, index) in messages" v-bind:key="index">
      <el-alert type="error" :title="row" />
    </div>
  </div>
</template>

<script setup lang="ts">
type Prop = {
  messages?: any[];
};

defineProps<Prop>();
</script>

<style scoped></style>
